﻿using System;
using System.Collections.Generic;

namespace B.MESUI.Login.ProdManagement.DTO
{
    // ********************************************************************************************
    // 文件：WorkOrderDTO.cs
    // 说明：工单相关的数据传输对象（DTO），用于前后端数据交互。
    // ********************************************************************************************

    /// <summary>
    /// 添加工单请求DTO
    /// </summary>
    public class AddWorkOrderRequest
    {
        /// <summary>
        /// 工单编码
        /// </summary>
        public string codeid { get; set; }
        /// <summary>
        /// 工单类型
        /// </summary>
        public string workordeR_TYPE { get; set; }
        /// <summary>
        /// 产品数据
        /// </summary>
        public string producT_DATA { get; set; }
        /// <summary>
        /// 工艺路线
        /// </summary>
        public string procesS_ROUTE { get; set; }
        /// <summary>
        /// 产线
        /// </summary>
        public string productioN_LINE { get; set; }
        /// <summary>
        /// 工单状态
        /// </summary>
        public string worK_STATUS { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime starT_TIME { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime enD_TIME { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int numbeR_COL { get; set; }
        /// <summary>
        /// 工艺进度
        /// </summary>
        public string procesS_PROGRESS { get; set; }
        /// <summary>
        /// 是否跳过
        /// </summary>
        public int isorskip { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public string attachment { get; set; }
        /// <summary>
        /// 工单描述
        /// </summary>
        public string workordeR_DESC { get; set; }
        /// <summary>
        /// 来源工人
        /// </summary>
        public string sourcE_WORKER { get; set; }
    }

    /// <summary>
    /// 工单列表项DTO
    /// </summary>
    public class WorkOrderListItem
    {
        /// <summary>
        /// 工单ID
        /// </summary>
        public string workorderid { get; set; }
        /// <summary>
        /// 工单编码
        /// </summary>
        public string codeid { get; set; }
        /// <summary>
        /// 工单类型
        /// </summary>
        public string workordeR_TYPE { get; set; }
        /// <summary>
        /// 产品数据
        /// </summary>
        public string producT_DATA { get; set; }
        /// <summary>
        /// 工艺路线
        /// </summary>
        public string procesS_ROUTE { get; set; }
        /// <summary>
        /// 产线
        /// </summary>
        public string productioN_LINE { get; set; }
        /// <summary>
        /// 工单状态
        /// </summary>
        public string worK_STATUS { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime starT_TIME { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime enD_TIME { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int numbeR_COL { get; set; }
        /// <summary>
        /// 工艺进度
        /// </summary>
        public string procesS_PROGRESS { get; set; }
        /// <summary>
        /// 是否跳过
        /// </summary>
        public int isorskip { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public string attachment { get; set; }
        /// <summary>
        /// 工单描述
        /// </summary>
        public string workordeR_DESC { get; set; }
        /// <summary>
        /// 来源工人
        /// </summary>
        public string sourcE_WORKER { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string creator { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? creatE_TIME { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public string updator { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? updatE_TIME { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool isdelete { get; set; }
        /// <summary>
        /// 锁定状态
        /// </summary>
        public string locK_STATUE { get; set; }
    }

    /// <summary>
    /// 删除工单请求DTO
    /// </summary>
    public class DeleteWorkOrderRequest
    {
        /// <summary>
        /// 工单ID列表
        /// </summary>
        public List<string> WORKORDERIDS { get; set; }
    }
}